from django import forms
from .models import UsersModel


class LoginForm(forms.Form):
    ''' user login form by using django forms '''

    username = forms.CharField(max_length=30, label=u'username')
    password = forms.CharField(max_length=30, label=u'password', widget=forms.PasswordInput)


class RigsterForm(forms.ModelForm):

    class Meta:
        model = UsersModel
        fields = ('username', 'password', 'email')

